package org.agpsoft.datareceiverinfrastructure.common;

import org.agpsoft.datareceiverinfrastructure.exception.DataReceiverCloseException;
import org.agpsoft.datareceiverinfrastructure.exception.DataReceiverOpenException;

/**
 * Basic common interface for all elements
 * @author Ali Gokalp Peker
 */
public interface IElementInitiator {
	/**
	 * Opens element with given context
	 * @param context Context parameters
	 * @throws DataReceiverOpenException
	 */
	public void open( Object context ) throws DataReceiverOpenException;
	
	/**
	 * Closes element
	 * @throws DataReceiverCloseException
	 */
	public void close() throws DataReceiverCloseException;
}
